﻿#pragma once
#include <stdint.h>




	//64位整型类型
typedef long long Int64Type;

	//会话代码类型
typedef long long SessionIDType;


//双精度浮点类型
typedef double DoubleType;

//数据库Decimal
typedef double DecimalType;


//交易所代码类型
typedef char ExchangeIDType[8];

//合约代码类型
typedef char InstrumentIDType[32];

//bar精度，1m|1h
typedef char PreceType[8];


enum class ProductClassType : int
{
	//期货
	Future = '0',
	//期货期权
	Options = '1',
	//组合合约
	Combination = '2',
	//现货
	Spot = '3',
	//期转现
	EFP = '4',
	//现货期权
	SoptOption = '5',
	//ETF期权
	ETFOption = '6',
	//股票
	Stock = '7',
	//TAS
	TAS = '8',
	//金属指数
	MI = '9',
};


